#ifndef RUNTASKTHREAD_H
#define RUNTASKTHREAD_H

#include <QObject>
#include <QThread>
#include <QVector>
#include <QMutex>
#include "point.h"
#include "utils.h"
#include "worker.h"

class RunTaskThread : public QThread
{
    Q_OBJECT
signals:
    void tTaskFinished(QVector<int>,QString);
public:
    RunTaskThread(QVector<Point> *p,int count,double tInit,double tFinal,double a);


    // QThread interface
protected:
    virtual void run() override;

private:
    QVector<Point> *pointArr;
    double tInit,tFinal,alpha;
    int count;
    QMutex *locker;
};

#endif // RUNTASKTHREAD_H
